package com.itheima.service.impl;

import com.itheima.dao.BaseDictDao;
import com.itheima.domain.BaseDict;
import com.itheima.service.BaseDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ClassName:BaseDictServiceImpl
 * Package:com.itheima.service.impl
 * Description:
 * Date:2020/3/17 12:59
 * User: snow
 */
@Service
@Transactional
public class BaseDictServiceImpl implements BaseDictService {

	@Autowired
	private BaseDictDao baseDictDao;

	@Override
	public List<BaseDict> findBaseDictByTypeCode(String dictTypeCode) throws Exception {
		return baseDictDao.findBaseDictByTypeCode(dictTypeCode);
	}
}
